package com.javalab._4collection;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/**
 * map的使用
 */
public class MapTest {
    public static void main(String[] args) {
        Map<String,String> map = new HashMap<>();
        map.put("1","2");
        map.remove("1");
        map.containsKey("1");
        Set<String> keySet = map.keySet();
        Set<Map.Entry<String, String>> entries = map.entrySet();
        for (Map.Entry<String, String> entry : entries) {

        }
    }
}
